﻿<UserControl x:Class="PCSWpfClient.View.PriceSeriesStatisticsView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <GroupBox>
        <GroupBox.Header>Statistics</GroupBox.Header>
        <Grid >
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="100"/>
                <ColumnDefinition Width="*" MinWidth="100"/>
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
            </Grid.RowDefinitions>
            <Label Grid.Row="0" Grid.Column="0">Count :</Label>
            <TextBlock Grid.Row="0" Grid.Column="1" Text="{Binding Path=CurrentStatistics.Count}"/>
            <Label Grid.Row="1" Grid.Column="0">Sum :</Label>
            <TextBlock Grid.Row="1" Grid.Column="1" Text="{Binding Path=CurrentStatistics.Sum}"/>
            <Label Grid.Row="2" Grid.Column="0">Average :</Label>
            <TextBlock Grid.Row="2" Grid.Column="1" Text="{Binding Path=CurrentStatistics.Average}"/>
            <Label Grid.Row="3" Grid.Column="0">Proportions :</Label>
            <TextBlock Grid.Row="3" Grid.Column="1" Text="{Binding Path=CurrentStatistics.Proportions}"/>
        </Grid>
            
    </GroupBox>
</UserControl>
